package com.owen.create;

import com.alibaba.excel.EasyExcel;
import com.owen.entity.PoorData;
import com.owen.listener.PoorDataListener;
import org.junit.Test;

public class CreateQrCode {

    public static final String FILE_NAME="高一社区";

    private String[] fileNames=new String[]{"磨沟口村","磨沟里村","王庄村","高一社区"};

    @Test
    public void test(){
//        EasyExcel.read("F:\\工作文件\\2021\\扶贫\\生成二维码\\磨沟口村\\磨沟口村.xlsx", PoorData.class,new PoorDataListener()).doReadAll();
//        EasyExcel.read("F:\\工作文件\\2021\\扶贫\\生成二维码\\磨沟里村\\磨沟里村.xlsx", PoorData.class,new PoorDataListener()).doReadAll();
//        EasyExcel.read("F:\\工作文件\\2021\\扶贫\\生成二维码\\王庄村\\王庄村.xlsx", PoorData.class,new PoorDataListener()).doReadAll();
//        EasyExcel.read("F:\\工作文件\\2021\\扶贫\\生成二维码\\"+FILE_NAME+"\\"+FILE_NAME+".xlsx", PoorData.class,new PoorDataListener()).doReadAll();
        for (int i = 0; i < fileNames.length; i++) {
            EasyExcel.read("F:\\工作文件\\2021\\扶贫\\生成二维码\\"+fileNames[i]+"\\"+fileNames[i]+".xlsx", PoorData.class,new PoorDataListener(fileNames[i])).doReadAll();
        }
    }


}
